home *** CD-ROM | disk | FTP | other *** search
/ Univers Interactif 3 / INTERACTIF.BIN / pc / planeten / internet / macslip2.6up / MacSLIP Folder / Autobaud.samples < prev    next >
Text File  |  1995-01-11  |  1KB  |  38 lines

  1. #
  2. #    This script contains a sample fragment of script code for
  3. #    initiating a connection with a Cisco terminal server
  4. #    that requires using carriage returns to autobaud.
  5. #    It may also be useful for connecting with any other system 
  6. #    that requires an autobaud sequence of several returns to
  7. #    start a session.
  8. #
  9. #    You should paste this sample into your script where appropriate --
  10. #    probably just after the section where you dial the phone and have
  11. #    received a "CONNECT" from the modem.
  12. #
  13.  
  14. #
  15. # Send several initial carriage returns, then wait a second.
  16. #
  17. flush
  18. send \r\r\r\r
  19. delay 1
  20. #
  21. # Now, send a return once a second until we match the system 
  22. # prompt. In this case we just look for the ">" character. You
  23. # may need to change this to look for "login:", "Username:", etc.
  24. # We give up and abort the script after 10 tries.
  25. #
  26. setcount 0 0
  27. label auto
  28. flush
  29. ifcountgt 0 10 return 0
  30. send \r
  31. {
  32.     ifmatch ">" break
  33.     iftime 1 goto auto
  34. }
  35.  
  36. # script continues here after successful autobaud
  37.  
  38.